package org.yn.shopping.service;

import org.yn.base.service.IBaseService;
import org.yn.shopping.domain.ShoppingCart;
import org.yn.shopping.dto.ShoppingCartDTO;
import org.yn.shopping.dto.StateDTO;
import org.yn.shopping.vo.ShoppingCartVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yn
 * @since 2023-08-30
 */
public interface IShoppingCartService extends IBaseService<ShoppingCart> {

    void addShoppingCart(ShoppingCartDTO dto);

    List<List<ShoppingCartVO>> getShoppingCartByUserId(Long userId);

    void deleteByCarId(Long carId);

    void deleteAllByUserId(Long userId);


    void chageState(StateDTO dto);

    Integer count(Long userId);
}
